#!/bin/bash

#lnmp
curl -o lnmp-1.5.7_init.sh https://gitee.com/ffing/onekey/raw/master/lnmp-1.5.7_init.sh && bash lnmp-1.5.7_init.sh

#wordpress
curl -o wordpress-5.6.2_init.sh https://gitee.com/ffing/onekey/raw/master/wordpress-5.6.2_init.sh && bash wordpress-5.6.2_init.sh

#creatdatabase：wordpress；mysqlpwd：123456
curl -o mysqlpwd-123456_init.sh https://gitee.com/ffing/onekey/raw/master/mysqlpwd-123456_init.sh && bash mysqlpwd-123456_init.sh


#php.ini
sed -i 's/upload_max_filesize.*/ upload_max_filesize=300M/' /etc/php.ini
sed -i 's/post_max_size.*/ post_max_size=300M/' /etc/php.ini
systemctl restart php-fpm
#nginx.conf
sed -i '/http {/a client_max_body_size 300m;' /etc/nginx/nginx.conf
systemctl restart nginx